Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / RemoveAsync Method / RemoveAsync<T>(IDataCollection<T>,Int32,CancellationToken) Method
The data collection.
The index of the item that will be removed.
The cancellation token.

In This Topic
    RemoveAsync<T>(IDataCollection<T>,Int32,CancellationToken) Method
    In This Topic
    Removes the item at the specified index from the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function RemoveAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal index As Integer, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task
    public static Task RemoveAsync<T>( 
       IDataCollection<T> dataCollection,
       int index,
       CancellationToken cancellationToken
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    index
    The index of the item that will be removed.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also